import {createRouter, createWebHistory} from 'vue-router'

const routes = [
    {
        path:"/",
        component:()=> import('../UserViews/Login.vue')
    },
    {
        path:"/login",
        component:()=> import('../UserViews/Login.vue')
    },
    {
        path:"/register",
        component:()=> import('../UserViews/Register.vue')
    },
    {
        path:"/recommend",
        component:()=> import('../MainViews/RecommendPage.vue')
    },
    {
        path:"/music_room",
        component:()=> import('../MainViews/MusicRoomPage.vue')
    },
    {
        path:"/game",
        component:()=> import('../MainViews/GamePage.vue')
    },
    {
        path:"/q_a",
        component:()=> import('../MainViews/QAPage.vue')
    },
    {
        path:"/chat_ana",
        component:()=> import('../MainViews/ChatAna.vue')
    },
    {
        //外嵌页
        path:"/chat",
        component:()=> import('../MainViews/ChatPage3.vue')
    },
    {
        path:"/chat_setting",
        component:()=> import('../SubViews/ChatSettingPage.vue')
    },

    {
        path:"/love",
        component:()=> import('../MainViews/MyLovePage.vue')
    },
    {
        path:"/history",
        component:()=> import('../MainViews/HistoryPage.vue')
    },
    {
        path:"/user",
        component:()=> import('../UserViews/UserPage.vue')
    },
    {
        path:"/song_play",
        component:()=> import('../SubViews/SongPlayPage.vue')
    },
    {
        path:"/style_songs",
        component:()=> import('../SubViews/StyleSongsListPage.vue')
    },
    {
        path:"/item_rec",
        component:()=> import('../SubViews/ItemRecPage.vue')
    },
    // hot_listen_count_rec
    {
        path:"/hot_listen_count_rec",
        component:()=> import('../SubViews/HotListenCountRecPage.vue')
    },
    {
        path:"/search",
        component:()=> import('../SubViews/SearchPage.vue')
    },
    {
        path:"/test",
        component:()=> import('../TestViews/TestQA.vue')
    },
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router
